<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <ul>
        <li>没用了</li>
        <li>有用</li>
        <li>好帅</li>

    </ul>

    <script>

        const ul = document.querySelector('ul')
        //删除节点 父元素.removeChild(子元素)，一定要先找到他的爸爸
        ul.removeChild(ul.children[1]);

    </script>


</body>

</html>